package com.makenv.dao;

import com.makenv.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    List<User> showUserList(@Param("startRow") int startRow,
                            @Param("num") int num);

    User selectUser(@Param("username") String username, @Param("password") String password);

    int insert(User user);

    int deleteByPrimaryKey(int id);

    int updateByPrimaryKey(User user);

    int getUserSum();
}
